<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsSearchConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_search_configs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('type')->comment('搜索类型')->unique();
            $table->tinyInteger('status')->comment('状态');
            $table->mediumText('arg1')->comment('参数1')->nullable();
            $table->mediumText('arg2')->comment('参数2')->nullable();
            $table->mediumText('arg3')->comment('参数3')->nullable();
            $table->mediumText('arg4')->comment('参数4')->nullable();
            $table->mediumText('arg5')->comment('参数5')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_search_configs');
    }
}
